package com.ruoyi.scrap.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_scrap_apply_into")
public class ScrapApplyInto extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 申请单id */
    @Excel(name = "申请单id")
    private String applyId;
    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date intoTime;
    /** 名称 */
    @Excel(name = "名称")
    private String intoName;
    /** 规格 */
    @Excel(name = "规格")
    private String intoSpec;
    /** 计量单位 */
    @Excel(name = "计量单位")
    private String intoUnit;
    /** 交付重量 */
    @Excel(name = "交付重量")
    private BigDecimal intoWeight;
    /** 班次 */
    @Excel(name = "班次")
    private String intoClass;
    /** 库号 */
    @Excel(name = "库号")
    private String intoNo;
    /** 科室id */
    @Excel(name = "科室id")
    private Long deptId;
    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;
    /** 状态（0：未出库；1：已出库） */
    @Excel(name = "状态", readConverterExp = "0=：未出库；1：已出库")
    private String status;
    /** 删除标识 */
    @Excel(name = "删除标识")
    private String delFlag;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("applyId", getApplyId())
                .append("intoTime", getIntoTime())
                .append("intoName", getIntoName())
                .append("intoSpec", getIntoSpec())
                .append("intoUnit", getIntoUnit())
                .append("intoWeight", getIntoWeight())
                .append("intoClass", getIntoClass())
                .append("intoNo", getIntoNo())
                .append("deptId", getDeptId())
                .append("userId", getUserId())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
